package com.yanjiali.mappers;

import com.yanjiali.entity.History;
import com.yanjiali.model.req.RecordPersonalHistoricalRecordsReq;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Package: com.yanjiali.mappers
 * @Author: yanjiali
 * @Created: 2025/4/19 15:31
 */
@Mapper(componentModel = "spring")
public interface RecordPersonalHistoricalRecordsReqMapper {
    RecordPersonalHistoricalRecordsReqMapper INSTANCE = Mappers.getMapper(RecordPersonalHistoricalRecordsReqMapper.class);

    /**
     * req --> entity
     * @param recordPersonalHistoricalRecordsReq
     * @return
     */
    History entity2Resp(RecordPersonalHistoricalRecordsReq recordPersonalHistoricalRecordsReq);

    /**
     * 批量 req --> entity
     * @param recordPersonalHistoricalRecordsReqs
     * @return
     */
    List<History> entityALL2Resp(List<RecordPersonalHistoricalRecordsReq> recordPersonalHistoricalRecordsReqs);
}
